<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */

namespace App\Common\Repositories\System;

use App\Common\Dao\System\CustomerLogOperateDao;
use App\Common\Repositories\BaseRepository;

/**
 * Class BaseRepository.
 * @mixin CustomerLogLoginRepository
 */
class CustomerLogOperateRepository extends BaseRepository
{
    public function __construct(CustomerLogOperateDao $dao)
    {
        $this->dao = $dao;
    }

    public function getWhereList(array $where, int $limit)
    {
        return $this->dao->search($where)->with(['creator'])->orderBy('id', 'desc')->paginate($limit);
    }
}
